-- GENERATED SPELL FOR [Sporelok] --


function spell0_18912(pUnit, Event) --@Sporeskin,Self--
pUnit:FullCastSpellOnTarget(35230,pUnit)
pUnit:RegisterEvent('Sorts_18912', 575, 1)
end

function Sorts_18912(pUnit, Event)
local choix_sorts_18912 = math.random(0, 0)
if choix_sorts_18912 == 0 then
pUnit:RegisterEvent('spell0_18912', 1, 1)
end
end

function mob18912_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18912', math.random(1500, 3000), 1)
end

function mob18912_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18912_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18912_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18912, 1, 'mob18912_Action')
RegisterUnitEvent(18912, 2, 'mob18912_Leave')
RegisterUnitEvent(18912, 3, 'mob18912_Kill')
RegisterUnitEvent(18912, 4, 'mob18912_Die')
